package com.kuaidao.aggregation.controller.user;


import com.kuaidao.aggregation.feign.sys.UserFeignClient;
import com.kuaidao.common.entity.JSONResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/user")
public class UserController {


    @Qualifier("com.kuaidao.aggregation.feign.sys.UserFeignClient")
    @Autowired
    private UserFeignClient userFeignClient;

    @RequestMapping("/hello")
    public JSONResult Hello(){
        return  userFeignClient.helloWord();
    }


}
